#ifndef ZNETLIBBIGDATATEST_CLIENT_H
#define ZNETLIBBIGDATATEST_CLIENT_H

#include <QtGui/QMainWindow>
#include "ui_znetlibbigdatatest_client.h"
#include "../ZNetLib/ZProcessor/ZProcessorMgr.h"
#include "../ZTcpNetLib/ZSocket/ZTcpClientSocket.h"
#include "../ZTcpNetLib/Package/ZPackReactor.h"

class ZNetLibBigDataTest_Client : public QMainWindow
{
	Q_OBJECT

public:
	ZNetLibBigDataTest_Client(QWidget *parent = 0, Qt::WFlags flags = 0);
	~ZNetLibBigDataTest_Client();

private slots:
	void PressedSelBtn();
	void PressedStartBtn();

private:
	void _sendByUdp(const QString& sAddr, const QByteArray& byteArr);
	bool _sendByTcp(const QByteArray& byteArr);

private:
	Ui::ZNetLibBigDataTest_ClientClass ui;
	QString	m_sFileName;

private:
	ZProcessorMgr		m_processorMgr;
	ZTcpPackReactorMgr		m_reactorMgr;
	ZTcpClientSocket	m_tcpClientSock;
};

#endif // ZNETLIBBIGDATATEST_CLIENT_H
